package com.yanboo.generator.config;

import org.hibernate.resource.jdbc.spi.StatementInspector;

public class JpaStatementInterceptor implements StatementInspector {
    /**
     * Inspect the given SQL command, possibly returning a different
     * SQL command to be used instead. A {@code null} return value is
     * interpreted as if the method had returned its argument.
     *
     * @param sql The SQL to inspect
     * @return The processed SQL to use; may be {@code null}
     */
    @Override
    public String inspect(String sql) {
        System.out.println(sql);
        return sql;
    }
}
